﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FX.CC.Andon.EqKanban
{
    public class AndonDispWrapper
    {
        
        public string EventID { get; set; }

        public string ETypeName { get; set; }

        public string DetailName { get; set; }

        public DateTime StartTime { get; set; }

        public double TotalTime { get; set; }

        public string OpUserName { get; set; }

        public string OpMobileNo { get; set; }

        public string SignUserName { get; set; }

        public double RspTime { get; set; }

        public int ReduceMin { get; set; }

        public string PreviewTxt {
            get
            {
                return "异常触发人员：" + OpUserName + "    联系电话：" + (string.IsNullOrEmpty(OpMobileNo) ? "无号码" : OpMobileNo) +
                    "    " + (string.IsNullOrEmpty(this.SignUserName) ? "尚无人员签到处理此异常" : ("签到处理人员：" + this.SignUserName + "    响应时间：" + RspTime.ToString("0.##")+ "分钟"));
            }
        }
    }
}
